package com.suzhiliang.springbootlesson.login;

import com.suzhiliang.springbootlesson.javaMailDemo.MailContentTypeEnum;
import com.suzhiliang.springbootlesson.javaMailDemo.MailSender;

import java.util.ArrayList;

/**
 * Copyright (C), 2015-2018, XXX有限公司
 *
 * @ClassName: TestMail
 * @Author: xmm
 * @Date: 2018/10/19 15:40
 * @Description: 测试邮件发送类
 * @Version 1.0
 */
public class TestMail {

    public static  void main(String args[]) throws Exception{
        new MailSender()
                .title("测试SpringBoot--javaMail")
                .content("简单文本内容测试")
                .contentType(MailContentTypeEnum.TEXT)
                .target(new ArrayList<String>(){{
                    add("suzhiliang0149@dingtalk.com");
                }}).sender();

    }
}
